--region
--Date
--此文件由[BabeLua]插件自动生成


package.cpath = package.cpath .. ";../../luaclib/?.so"
io.write(string.format("-------->>> %s <<<--------\n", "testing ...")) -- 此函数不会自动换行
require("dump")
local xlib = require("xlib")

local uuid = xlib.get_uuid("222")
print("uuid: ", uuid)

local time = xlib.get_time()
print("tb_time:", time)

local num = xlib.get_random(1, 1000)
print("tb_random:", num)


local num = xlib.get_bitmap({1, 1000, 3,4,9,11}, 1000)
print("get_bitmap:", num)
if type(num) == "table" then
    for k, v in pairs(num) do
        print(k, v);
    end
end


print("lucy_test:")
local data = xlib.lucy_test({a=1, b=1000, c=3, d=4}, 3, 66)
if type(data) == "table" then
    for k, v in pairs(data) do
        print("lucy_test data:",k, v)
    end
else
    print("lucy:", data)
end

print("time_test:")
local us = xlib.get_time_us()
print("us:", string.format("%.0f",us))
local ms = xlib.get_time_ms()
print("ms:", ms);
local se = xlib.get_time_se()
print("se:", se)



--
--function test(...)
--    print(arg.n)
--    for k, v in pairs(arg) do
--        print(k, v)
--    end
--    print(debug.traceback())
--end
--
--test(1, 2,3)






--endregion
